package com.platform.omp.OperationalModule.customerInjure.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * HR_ORG_POST
 * @author 
 */
public class HrOrgPost implements Serializable {
    private String postNo;

    private String postId;

    private String postName;

    private String deptNo;

    private String deptId;

    private Date createTime;

    private Date lastupdateTime;

    private Byte isDel;

    private String postType;

    private Integer fdeletedStatus;

    private String pPostNo;

    private String pPostId;

    private static final long serialVersionUID = 1L;

    public String getPostNo() {
        return postNo;
    }

    public void setPostNo(String postNo) {
        this.postNo = postNo;
    }

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastupdateTime() {
        return lastupdateTime;
    }

    public void setLastupdateTime(Date lastupdateTime) {
        this.lastupdateTime = lastupdateTime;
    }

    public Byte getIsDel() {
        return isDel;
    }

    public void setIsDel(Byte isDel) {
        this.isDel = isDel;
    }

    public String getPostType() {
        return postType;
    }

    public void setPostType(String postType) {
        this.postType = postType;
    }

    public Integer getFdeletedStatus() {
        return fdeletedStatus;
    }

    public void setFdeletedStatus(Integer fdeletedStatus) {
        this.fdeletedStatus = fdeletedStatus;
    }

    public String getpPostNo() {
        return pPostNo;
    }

    public void setpPostNo(String pPostNo) {
        this.pPostNo = pPostNo;
    }

    public String getpPostId() {
        return pPostId;
    }

    public void setpPostId(String pPostId) {
        this.pPostId = pPostId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HrOrgPost other = (HrOrgPost) that;
        return (this.getPostNo() == null ? other.getPostNo() == null : this.getPostNo().equals(other.getPostNo()))
            && (this.getPostId() == null ? other.getPostId() == null : this.getPostId().equals(other.getPostId()))
            && (this.getPostName() == null ? other.getPostName() == null : this.getPostName().equals(other.getPostName()))
            && (this.getDeptNo() == null ? other.getDeptNo() == null : this.getDeptNo().equals(other.getDeptNo()))
            && (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getLastupdateTime() == null ? other.getLastupdateTime() == null : this.getLastupdateTime().equals(other.getLastupdateTime()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()))
            && (this.getPostType() == null ? other.getPostType() == null : this.getPostType().equals(other.getPostType()))
            && (this.getFdeletedStatus() == null ? other.getFdeletedStatus() == null : this.getFdeletedStatus().equals(other.getFdeletedStatus()))
            && (this.getpPostNo() == null ? other.getpPostNo() == null : this.getpPostNo().equals(other.getpPostNo()))
            && (this.getpPostId() == null ? other.getpPostId() == null : this.getpPostId().equals(other.getpPostId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPostNo() == null) ? 0 : getPostNo().hashCode());
        result = prime * result + ((getPostId() == null) ? 0 : getPostId().hashCode());
        result = prime * result + ((getPostName() == null) ? 0 : getPostName().hashCode());
        result = prime * result + ((getDeptNo() == null) ? 0 : getDeptNo().hashCode());
        result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getLastupdateTime() == null) ? 0 : getLastupdateTime().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        result = prime * result + ((getPostType() == null) ? 0 : getPostType().hashCode());
        result = prime * result + ((getFdeletedStatus() == null) ? 0 : getFdeletedStatus().hashCode());
        result = prime * result + ((getpPostNo() == null) ? 0 : getpPostNo().hashCode());
        result = prime * result + ((getpPostId() == null) ? 0 : getpPostId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", postNo=").append(postNo);
        sb.append(", postId=").append(postId);
        sb.append(", postName=").append(postName);
        sb.append(", deptNo=").append(deptNo);
        sb.append(", deptId=").append(deptId);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastupdateTime=").append(lastupdateTime);
        sb.append(", isDel=").append(isDel);
        sb.append(", postType=").append(postType);
        sb.append(", fdeletedStatus=").append(fdeletedStatus);
        sb.append(", pPostNo=").append(pPostNo);
        sb.append(", pPostId=").append(pPostId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}